package com.per.mybootall.pojo;

import org.springframework.stereotype.Component;

import java.util.Date;
@Component

public class Category {
    private Integer id;

    private Long parentId;

    private String name;

    private Date creatTime;

    private Date updateTime;

    public Category(Integer id, Long parentId, String name, Date creatTime, Date updateTime) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.creatTime = creatTime;
        this.updateTime = updateTime;
    }

    public Category() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}